

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>销售单</title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><g:link class="list" action="list">产品销售列表</g:link></span>
            <span class="menuButton"><g:link class="create" action="create">创建新的销售单</g:link></span>
        </div>
        <div class="body">
            <h1>销售单</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="dialog">
                <table>
                    <tbody>

                        <tr class="prop">
                            <td valign="top" class="name">销售号:</td>

                            <td valign="top" class="value">${fieldValue(bean:exportProductInstance, field:'sellNumber')}</td>

                        </tr>
                        
                        <tr class="prop">
                            <td valign="top" class="name">产品名称:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:exportProductInstance, field:'productName')}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">销售数量:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:exportProductInstance, field:'amount')}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">产品分类:</td>
                            
                            <td valign="top" class="value"><g:link controller="catalog" action="show" id="${exportProductInstance?.catalog?.id}">${exportProductInstance?.catalog?.encodeAsHTML()}</g:link></td>
                            
                        </tr>

                       <tr class="prop">
                            <td valign="top" class="name">供应商:</td>

                            <td valign="top" class="value"><g:link controller="supplier" action="show" id="${exportProductInstance?.supplier?.id}">${exportProductInstance?.supplier?.encodeAsHTML()}</g:link></td>

                        </tr>

                        <tr class="prop">
                            <td valign="top" class="name">产品型号:</td>

                            <td valign="top" class="value">${fieldValue(bean:exportProductInstance, field:'modelNo')}</td>

                        </tr>

                        <tr class="prop">
                            <td valign="top" class="name">进货号:</td>

                            <td valign="top" class="value">${fieldValue(bean:exportProductInstance, field:'number')}</td>

                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">进货价:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:exportProductInstance, field:'inPrice')}</td>
                            
                        </tr>

                        <tr class="prop">
                            <td valign="top" class="name">零售价:</td>

                            <td valign="top" class="value">${fieldValue(bean:exportProductInstance, field:'outPrice')}</td>

                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">产品状态:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:exportProductInstance, field:'productFlag')}</td>
                            
                        </tr>

                        <tr class="prop">
                            <td valign="top" class="name">进货时间:</td>

                            <td valign="top" class="value"><g:customDateFormat>${fieldValue(bean:exportProductInstance, field:'time')}</g:customDateFormat></td>

                        </tr>

                       <tr class="prop">
                            <td valign="top" class="name">销售时间:</td>

                            <td valign="top" class="value"><g:customDateFormat>${fieldValue(bean:exportProductInstance, field:'sellTime')}</g:customDateFormat></td>

                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">备注:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:exportProductInstance, field:'remarks')}</td>
                            
                        </tr>
                    
                    
                    </tbody>
                </table>
            </div>
            <div class="buttons">
                <g:form>
                    <input type="hidden" name="id" value="${exportProductInstance?.id}" />
                    <span class="button"><g:actionSubmit class="edit" value="Edit" /></span>
                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
                </g:form>
            </div>
        </div>
    </body>
</html>
